/*
 * MatrixSystemFormatter.java
 *
 * Created on November 14, 2001, 8:26 PM
 */

package br.ufmg.dees.insane.ui.rich.learn.learn_view;


/**
 * This class is an abstract formatter of a system matrix like:
 * <pre>A * X = B</pre>
 * For example:
 * <pre>
 *     | a b c |   | i |   | w |
 *     | d e f | x | j | = | t |
 *     | g h l |   | k |   | x |
 *</pre> 
 *
 * @author  Krishna Caldas
 * @author Roque Pitangueira
 * @version 1.0
 * @since jdk1.3.1
 */
public abstract class MatrixSystemFormatter {

    protected int rows =0;
    
    protected String[] rowLabels;
    
    protected int cols =0;
    
    protected String[] colLabels;
    
   // protected GMatrix A;
    
   // protected GVector X;
    
   // protected GVector B;
   
    protected String ATitle;
    
    protected String XTitle;
    
    protected String BTitle;
    
    /** Creates new MatrixSystemFormatter */
    public MatrixSystemFormatter() {
    }
    
    public abstract String format();

    public void setRows(int rows) {
        this.rows = rows;
    }
    
    public int getRows() {
        return rows;
    }
    
    public void setRowLabels(String[] lbs) {
        this.rowLabels = lbs;
    }
    
    public void setCols(int cols) {
        this.cols = cols;
    }
    
    public int getCols() {
        return cols;
    }
    
    public void setColLabels(String[] lbs) {
        this.colLabels =lbs;
    }
    
   // public void setA(GMatrix A) {
      //  this.A = A;
   // }
    
    public void setATitle(String s) {
        this.ATitle = s;
    }
    
    //public void setX(GVector X) {
        //this.X = X;
    //}
    
    public void setXTitle(String s) {
        this.XTitle = s;
    }
    
   // public void setB(GVector B) {
        //this.B = B;
    //}
    
    public void setBTitle(String s) {
        this.BTitle = s;
    }
    
}
